import { array } from 'vue-types'

import type { ICreateConfigReq } from '@/apis'

import type ConfigDialog from './ConfigDialog'

export const configDialogProps = () => ({
  ynOptions: array<OptionItem>().def([])
})

export const formData = (): ICreateConfigReq => ({
  configName: '',
  configKey: '',
  configValue: '',
  configType: 'Y',
  remark: ''
})

export type IFormData = ICreateConfigReq
export type ConfigDialogRef = InstanceType<typeof ConfigDialog>
